package client;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;


public class AdapterClient extends Application {
    Stage stage = new Stage();
	
	public void showWindow(){
    	start(stage);
    }
	@Override
    public void start(Stage primaryStage) {
        try {
            Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/liyunlin/adapter/Adapter.fxml"));
            Scene scene = new Scene(root,800,600);
            primaryStage.setScene(scene);
            primaryStage.setResizable(false);//窗口大小不可改变
            primaryStage.setTitle("适配器模式");
            primaryStage.show();
        } catch(Exception e) {
            e.printStackTrace();
        }
    }

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		launch(args);
	}

}
